runtime.slice.cap (field)
12 uses
runtime (current package)
cgocall.go#L401: p.cap = cap(s)
cgocall.go#L646: for i := 0; i < s.cap; i++ {
debuglog.go#L313: bb.len, bb.cap = len(x), len(x)
map.go#L1838: if s.len >= s.cap {
map.go#L1903: if s.len >= s.cap {
mheap.go#L535: sp.cap = n
print.go#L21: rp.cap = sp.len
slice.go#L18: cap int
slice.go#L335: num -= old.cap - old.len // preserve memory of old[old.len:old.cap]
slice.go#L336: new := growslice(old.array, old.cap+num, old.cap, num, et)
slice.go#L342: oldcapmem := uintptr(old.cap) * et.Size_
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |